package com.szxy.service;

import com.szxy.pojo.Focus;
import com.szxy.pojo.User;
import com.szxy.utils.UserGrid;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 用户服务
 */

public interface UserService {

    public int registerCheck(String phone);

    public int userRegisterService(String username, String phone, String password);

    public User userLoginService(String phone, String password);

    public User findSellerInfoByIdService(Integer id);

    void addGoodsFocusService(Integer goodId, Integer uid);

    List<Focus> findGoodsFocusByUserIdService(Integer userId);

    void updateUserInfoService(User user);

    void deleteFocusGoodsService(Integer goodId);

    UserGrid findUserByPaginationService(Integer pageNum, Integer pageSize);

}
